{% extends "base.html" %}

{% block content %}
    {% for i in content %}
        <div class="file-content">
        <div class="file-name" style="width:25%;">{{ i.name }}</div>
        <div class="file-size" style="width:11%;">{{ i.filesize }} B</div>
        <div class="file-date" style="width:5%;">{{ i.downloadcount }}</div>
        <div class="file-date" style="width:16%;">{{ i.datetime }}</div>
        <div class="file-link" style="width:43%; padding-right: 80px; text-overflow: ellipsis; overflow: hidden;">
            <span>
                https://{{ host }}/s/{{ i.code}}
            </span>
        </div>
        <a href="/{{ i.path }}" style="color:#FFF;"><button>Download</button></a>
    </div>
    {% endfor %}
{% endblock %}
